// Star

function Star( x, y, color, rotation, shadowBlur, lineWidth  )
{
    this.x = x;
    this.y = y;
    this.color = color;
    this.rotation = rotation;
    this.lineWidth = lineWidth;
}

Star.prototype.draw = function( context, x0, x1, x2, x3, x4, x5, x6, x7, x8 )
{
    context.save();
    context.translate( this.x, this.y );
    context.rotate( this.rotation );
    context.lineWidth = this.lineWidth;
    context.fillStyle = this.color;
    context.beginPath();
    context.moveTo( x0, x1 );
    context.lineTo( x2, x3 );
    context.lineTo( x1, x3 );
    context.lineTo( x4, x5 );
    context.lineTo( x6, x7 );
    context.lineTo( x0, x8 );
    context.lineTo( -x6, x7 );
    context.lineTo( -x4, x5 );
    context.lineTo( -x1, x3 );
    context.lineTo( -x2, x3 );
    context.lineTo( x0, x1 );
    context.closePath();
    context.fill();
    context.stroke();
    context.restore();
}
